package com.examination.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * (Commodity)实体类
 *
 * @author makejava
 * @since 2021-08-16 17:34:10
 */
public class Commodity implements Serializable {
  /** 物品id */
  private Integer id;

  private Integer userId;
  /** 物品名称 */
  private String commodityName;
  /** 价格(所需积分) */
  private Double price;
  /** 商品图片地址 */
  private String url;
  /** 上架时间 */
  private String upTime;
  /** '1'上架 '0'下架 */
  private Integer active;

  public Commodity() {
    super();
  }

  public Commodity(Integer id, Integer userId, String commodityName, Double price, String url, String upTime, Integer active) {
    this.id = id;
    this.userId = userId;
    this.commodityName = commodityName;
    this.price = price;
    this.url = url;
    this.upTime = upTime;
    this.active = active;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getCommodityName() {
    return commodityName;
  }

  public void setCommodityName(String commodityName) {
    this.commodityName = commodityName;
  }

  public Double getPrice() {
    return price;
  }

  public void setPrice(Double price) {
    this.price = price;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getUpTime() {
    return upTime;
  }

  public void setUpTime(String upTime) {
    this.upTime = upTime;
  }

  public Integer getActive() {
    return active;
  }

  public void setActive(Integer active) {
    this.active = active;
  }
}
